﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Drawing.Imaging;

namespace THO7AlgoritmTimerApplication {
    class test : VisionAlgorithm {
        public test(String name) : base(name) { }
        public override Bitmap DoAlgorithm(Bitmap sourceImage) {
            VisionAlgorithm contrast = new contrast_add("");
            VisionAlgorithm knip_wit = new Cropwhite("");
            VisionAlgorithm rotate = new Rotate90("");
            contrast.setMarge(100);
            rotate.setMarge(1);
            sourceImage = contrast.DoAlgorithm(sourceImage);
            sourceImage = knip_wit.DoAlgorithm(sourceImage);
            sourceImage = rotate.DoAlgorithm(sourceImage);
            sourceImage = knip_wit.DoAlgorithm(sourceImage);
            rotate.setMarge(2);
            sourceImage = rotate.DoAlgorithm(sourceImage);
            sourceImage = knip_wit.DoAlgorithm(sourceImage);
            return sourceImage;
        }
    }
}
